package com.zjf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


@TableName("orders")
@Data
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;

    private String userId;


    private Integer businessId;

    private String orderDate;


    private BigDecimal orderTotal;


    private Integer daId;

    private Integer orderState;

    @TableField(exist = false)
    private Business business;
    @TableField(exist = false)
    private List<OrderDetailet> list;


}
